﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _019.继承
{
	class BaseClass
	{
		public int data1;
		public int data2;

		// 虚方法
		public virtual void Function1()
		{
            Console.WriteLine("BaseClass:Function1");
        }

		public void Function2()
		{
			Console.WriteLine("BaseClass:Function2");
		}

		// 隐藏方法
		public void AI()
		{
            Console.WriteLine("隐藏方法");
        }
	}
}
